You are here: Statements and Functions > Debug
Syntax samples
DEBUG
Brings up ProModel’s debugger. Use DEBUG to step through logic one statement at a time and examine variable and attribute values while developing a model. After a model is working, DEBUG statements are generally removed.
Any logic.
Example
If you were having trouble with a Client’s logic at a particular location, we could start the processing logic with a DEBUG statement, as in the following example. This would allow you to watch each Client’s logic execute, statement by statement, revealing problems with the logic’s flow.
Process Table
Entity |
Location |
Operation (min) |
---|---|---|
Client |
Recep |
DEBUG IF Attr1=1 THEN GRAPHIC WAIT 5 min |
Routing Table
Blk |
Output |
Destination |
Rule |
Move Logic |
---|---|---|---|---|
1 |
Client |
Waiting |
FIRST 1 |
MOVE FOR 5 |
During run time, the ProModel debugger would appear displaying the following information: